package com.zh.javafeaturesupport.util

import com.zh.javafeaturesupport.ext.streamSupport

class StreamExtTest {
    companion object {
        /**
         * 测试forEach
         */
        @JvmStatic
        fun testForEach(list: List<Int>, callback: (item: Int) -> Unit) {
            val stream = list.streamSupport()
            stream.forEach {
                callback.invoke(it)
            }
        }
    }
}